{{css "/libs/bootstrap/dist/css/bootstrap.css, /libs/font-awesome/css/font-awesome.css, /libs/animate.css/animate.css,/css/base.css,/css/auth.css"
}} {{js "/libs/jquery/dist/jquery.js, /libs/bootstrap/dist/js/bootstrap.js,/js/auth.js"
}}


<div class="container-fluid auth-page">
    <div class="row">
        <div class="col-md-offset-4 col-md-4 auth-box">
            <ul class="nav nav-tabs">
                <li {{#if login}} class="active" {{/if}}><a href="/login">登录</a></li>
                <li {{#unless login}} class="active" {{/unless}}><a href="/register">注册</a></li>
            </ul>
            <form method="post" action="/login" {{#if login}} class="active login-form" {{/if}}>
                <div class="form-group">
                    <label>用户名</label><input type="text" class="form-control" name="username" />
                </div>
                <div class="form-group">
                    <label>密码</label><input type="password" class="form-control" name="password" />
                </div>
                <input type="submit" value="登录" class="btn btn-primary"/>
            </form>

            <form method="post" action="/register" {{#unless login}} class="active register-form" {{/unless}}>
                <div class="form-group">
                    <label>用户名</label><input name="username" type="text" class="form-control" />
                </div>
                <div class="form-group">
                    <label>密码</label><input name="password" type="password" class="form-control" />
                </div>
                <input type="submit" value="注册" class="btn btn-primary" />
            </form>
        </div>
    </div>
</div>